package com.hushao.aimi.bo;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @description: 商品Bo
 * @author: 胡少
 * @create: 2018-06-23 21:41
 **/
@Data
@Slf4j
public class ProductBo {
    //商品id
    private String productId;
    //商品名称
    private String productName;

    //推荐图片
    private String recommendImage;



    public ProductBo(Object o) {
        try{
            Object[] row= (Object[]) o;
            this.productId = (String) row[0];
            this.productName = (String) row[1];
            this.recommendImage= (String) row[2];

        }catch (Exception e){log.error("转换错误");}
    }
}
